package com.pym.controller;

import com.pym.entity.PymWpgj;
import com.pym.service.PymWpgjService;
import com.pym.service.impl.PymWpgjServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 物品操作轨迹(PymWpgj)表控制层
 *
 * @author makejava
 * @since 2021-08-20 19:46:26
 */
@RestController
@RequestMapping("/pymWpgj")
public class PymWpgjController {
    /**
     * 服务对象
     */
    @Autowired
    private PymWpgjServiceImpl pymWpgjService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PymWpgj selectOne(String id) {
        return this.pymWpgjService.queryById(id);
    }

}
